package com.nnnu.wsnackshop.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
@Schema(description = "创建门店 DTO")
public class AddStoreDTO {
    @NotBlank
    @Size(max = 100)
    @Schema(description = "门店名称")
    private String name;
    @NotBlank
    @Size(max = 50)
    @Schema(description = "门店编码")
    private String code;
    @Size(max = 50)
    @Schema(description = "负责人")
    private String manager;
    @Pattern(regexp = "^\\+?\\d{7,20}$")
    @Schema(description = "联系电话")
    private String phone;
}
